<?php
	
	require_once "Zend/Json.php";
	
	$data = array (
		"name" => $_REQUEST['fakename'],
		"image" => $_FILES['image'],
		"id"    => $_REQUEST['idimg']
	);

	echo Zend_Json::encode( $plugins -> storage -> uploadImage( $data ) );
